/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.put.dcs_modeler.utils;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author LukaszR
 */
public class FileUtil
{
    public static List< String > getDirsFileList( String path )
    {
        List< String > ret = new ArrayList< String >();
        File dir = new File( path );
        File[] fileList = dir.listFiles();
        if ( fileList.length > 0 )
        {
            for ( File file : fileList )
            {
                if ( file.isFile() )
                {
                    ret.add( file.getName() );
                }
            }
        }
        return ret;
    }
}
